#include "TitleScreenState.h"
#include "Overseer.h"
#include "GUIManager.h"
#include "InputManager.h"
#include "LoadingState.h"

TitleScreenState::TitleScreenState(Overseer *o) : State(o)
{
    name = "TitleScreen";
}

void TitleScreenState::initialise()
{
    overseer->getGUIManager()->executeScript("titleScreen.lua");
    overseer->getInputManager()->grabMouse();
}

void TitleScreenState::pause()
{
}

void TitleScreenState::resume()
{
}

void TitleScreenState::update(double timeSinceLastFrame)
{
}


void TitleScreenState::exit()
{
}

bool TitleScreenState::keyPressed(const OIS::KeyEvent &evt)
{
    switch (evt.key)
    {
    case OIS::KC_ESCAPE:
        overseer->exit();
        break;
    default:
        break;
    }
    return true;
}
bool TitleScreenState::keyReleased(const OIS::KeyEvent &evt)
{
    return true;
}
bool TitleScreenState::mouseMoved(const OIS::MouseEvent &evt)
{
    return true;
}
bool TitleScreenState::mousePressed(const OIS::MouseEvent &evt, OIS::MouseButtonID id)
{
    return true;
}
bool TitleScreenState::mouseReleased(const OIS::MouseEvent &evt, OIS::MouseButtonID id)
{
    return true;
}
